package com.whfc.emp.service;

import com.whfc.common.exception.BizException;
import com.whfc.common.result.ListData;
import com.whfc.common.result.PageData;
import com.whfc.emp.dto.AppWorkTypeDTO;
import com.whfc.emp.param.WorkTypeAddParam;
import com.whfc.emp.param.WorkTypeEditParam;

import java.util.List;

/**
 * @ClasssName AppEmpWorkService
 * @Description 人员模块-工种字典
 * @Author hw
 * @Date 2020/12/24 9:46
 * @Version 1.0
 */
public interface AppEmpWorkService {

    /**
     * 工种列表(分页)
     *
     * @param deptId
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageData<AppWorkTypeDTO> workTypeList(Integer deptId, Integer pageNum, Integer pageSize)throws BizException;

    /**
     * 工种列表(不分页)
     *
     * @param deptId
     * @return
     */
    List<AppWorkTypeDTO> workTypeList(Integer deptId)throws BizException;

    /**
     * 添加工种
     *
     * @param param
     */
    void workTypeAdd(WorkTypeAddParam param)throws BizException;

    /**
     * 编辑工种
     *
     * @param param
     */
    void workTypeEdit(WorkTypeEditParam param)throws BizException;

    /**
     * 删除工种
     *
     * @param id
     */
    void workTypeDel(Integer id)throws BizException;
}
